<?php

namespace App\Http\Controllers;
use Gregwar\Captcha\CaptchaBuilder;
use Session;
class  CaptchaController
{
    public function Show(){
       $builder=new CaptchaBuilder;
       $builder->build();
       session()->put('captcha',$builder->getPhrase());
       header('Content-Type:image/jpeg');
       $builder->output(); 
    }
}
